export interface Poetry {
  id: number
  title: string
  author: string
  dynasty: string
  original_text: string
  pinyin: string
  creative_background: string
  background_story: string
  key_words: {
    word: string
    pinyin: string
    explanation: string
  }[]
  artistic_conception: string
}

export interface PoetryCollection {
  collection_info: {
    title: string
    description: string
    total_count: number
    created_date: string
    age_group: string
  }
  poems: Poetry[]
}

export interface LearningProgress {
  learned_poems: number[]
  mastered_poems: number[]
  favorites: number[]
  current_streak: number
  last_learned_date: string
  total_learn_time: number
}

export interface Achievement {
  id: string
  name: string
  description: string
  icon: string
  unlocked: boolean
  unlocked_date?: string
  condition: {
    type: 'poems_learned' | 'poems_mastered' | 'favorites' | 'streak'
    value: number
  }
}

export interface AudioState {
  isPlaying: boolean
  currentTime: number
  duration: number
  speed: number
  isLooping: boolean
}

export type Theme = 'spring' | 'summer' | 'autumn' | 'winter' | 'animal' | 'landscape' | 'family'
export type Difficulty = 'beginner' | 'intermediate' | 'advanced'
export type Dynasty = '唐' | '宋' | '明'